package org.example.common.api;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Api返回状态码接口
 * Created by Mr.Huang on 2024/11/19
 */
@AllArgsConstructor
@Getter
public enum ResultCode implements IResultCode {
    SUCCESS(200, "Success"),
    FAILED(500, "服务器内部错误"),
    API_FAILED(404, "接口请求错误"),
    UNAUTHORIZED(401, "未登录或Token失效"),
    FORBIDDEN(403, "没有此操作权限");
    private final int code;
    private final String message;
}
